package com.haitao.wavebbs.controller;

import com.haitao.wavebbs.entity.tools.ResponseData;
import org.springframework.web.bind.annotation.*;

@RestController
public class PostCommentController {

    /**
     * 删除评论
     * @return
     */
    @DeleteMapping("postComment/{postCommentId}")
    public ResponseData deletePostComment(@PathVariable String postCommentId){
        return null;
    }

    /**
     *  查找某个帖子的某页评论
     * @param postId
     * @param page
     * @param per_page
     * @return  ArrayList<postComment>
     */
    @GetMapping("/postComment")
    @ResponseBody
    public ResponseData getPostComments(@RequestParam int postId, @RequestParam int page, @RequestParam int per_page){
        return null;
    }

    /**
     *  查找某个用户所有评论的某页评论
     * @param page
     * @param per_page
     * @return  ArrayList<postComment>
     */
    @GetMapping("/postComment/user/{userId}")
    @ResponseBody
    public ResponseData getPostCommentByUserId(@RequestParam int page, @RequestParam int per_page){
        return null;
    }
}
